Fix latent side-effects of respecting field boundaries in text conversion
authorPo Lu <luangruo@yahoo.com>
Tue, 25 Jun 2024 03:37:09 +0000 (11:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 25 Jun 2024 03:37:09 +0000 (11:37 +0800)
commit1b4c56272110944c4ea1483c6f9662de9e42a07b
tree0792653318ed66c21742dbe6c1087cc45bdb048e
parente4046f33ab8ff2a5a1edbba2634d52bcadf25b24
Fix latent side-effects of respecting field boundaries in text conversion

* src/textconv.c (textconv_query, get_extracted_text)
(get_surrounding_text): Restore selected window in addition to
excursion.
(locate_and_save_position_in_field): Restore excursion lest the
current buffer differ from the selected window's contents, to
prevent redisplay from clobbering the current buffer when called
while the current buffer is at variance with the selected
window's contents, as seen with dired-other-window.
src/textconv.c